/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jse;

/**
 *
 * @author Swang
 */
public class StringSplitTest {
    public static void main(String[] args) {
        //注意split方法参数为正则表达式
        String[] s = "register_question[0].type".split("\\.");
        System.out.println(s.length);
    }
}
